/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: msg.proto

package com.lyh.proto.msg;

/**
 * Protobuf type {@code model.MsgDatagram}
 */
public final class MsgDatagram extends com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:model.MsgDatagram)
                                                                             MsgDatagramOrBuilder {
    private static final long serialVersionUID = 0L;

    // Use MsgDatagram.newBuilder() to construct.
    private MsgDatagram(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
        super(builder);
    }

    private MsgDatagram() {
        topic_ = "";
        sendTime_ = 0L;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
        return this.unknownFields;
    }

    private MsgDatagram(com.google.protobuf.CodedInputStream input,
                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                    throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
            throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
            boolean done = false;
            while (!done) {
                int tag = input.readTag();
                switch (tag) {
                    case 0:
                        done = true;
                        break;
                    case 10: {
                        java.lang.String s = input.readStringRequireUtf8();

                        topic_ = s;
                        break;
                    }
                    case 16: {

                        sendTime_ = input.readInt64();
                        break;
                    }
                    case 26: {
                        com.google.protobuf.Any.Builder subBuilder = null;
                        if (datagram_ != null) {
                            subBuilder = datagram_.toBuilder();
                        }
                        datagram_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
                        if (subBuilder != null) {
                            subBuilder.mergeFrom(datagram_);
                            datagram_ = subBuilder.buildPartial();
                        }

                        break;
                    }
                    default: {
                        if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
                            done = true;
                        }
                        break;
                    }
                }
            }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
        } finally {
            this.unknownFields = unknownFields.build();
            makeExtensionsImmutable();
        }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.lyh.proto.msg.MsgOuter.internal_static_model_MsgDatagram_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
        return com.lyh.proto.msg.MsgOuter.internal_static_model_MsgDatagram_fieldAccessorTable
            .ensureFieldAccessorsInitialized(com.lyh.proto.msg.MsgDatagram.class,
                com.lyh.proto.msg.MsgDatagram.Builder.class);
    }

    public static final int           TOPIC_FIELD_NUMBER = 1;
    private volatile java.lang.Object topic_;

    /**
     * <code>string topic = 1;</code>
     */
    public java.lang.String getTopic() {
        java.lang.Object ref = topic_;
        if (ref instanceof java.lang.String) {
            return (java.lang.String) ref;
        } else {
            com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
            java.lang.String s = bs.toStringUtf8();
            topic_ = s;
            return s;
        }
    }

    /**
     * <code>string topic = 1;</code>
     */
    public com.google.protobuf.ByteString getTopicBytes() {
        java.lang.Object ref = topic_;
        if (ref instanceof java.lang.String) {
            com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
            topic_ = b;
            return b;
        } else {
            return (com.google.protobuf.ByteString) ref;
        }
    }

    public static final int SEND_TIME_FIELD_NUMBER = 2;
    private long            sendTime_;

    /**
     * <code>int64 send_time = 2;</code>
     */
    public long getSendTime() {
        return sendTime_;
    }

    public static final int         DATAGRAM_FIELD_NUMBER = 3;
    private com.google.protobuf.Any datagram_;

    /**
     * <code>.google.protobuf.Any datagram = 3;</code>
     */
    public boolean hasDatagram() {
        return datagram_ != null;
    }

    /**
     * <code>.google.protobuf.Any datagram = 3;</code>
     */
    public com.google.protobuf.Any getDatagram() {
        return datagram_ == null ? com.google.protobuf.Any.getDefaultInstance() : datagram_;
    }

    /**
     * <code>.google.protobuf.Any datagram = 3;</code>
     */
    public com.google.protobuf.AnyOrBuilder getDatagramOrBuilder() {
        return getDatagram();
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized == 1)
            return true;
        if (isInitialized == 0)
            return false;

        memoizedIsInitialized = 1;
        return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        if (!getTopicBytes().isEmpty()) {
            com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
        }
        if (sendTime_ != 0L) {
            output.writeInt64(2, sendTime_);
        }
        if (datagram_ != null) {
            output.writeMessage(3, getDatagram());
        }
        unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1)
            return size;

        size = 0;
        if (!getTopicBytes().isEmpty()) {
            size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
        }
        if (sendTime_ != 0L) {
            size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, sendTime_);
        }
        if (datagram_ != null) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatagram());
        }
        size += unknownFields.getSerializedSize();
        memoizedSize = size;
        return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof com.lyh.proto.msg.MsgDatagram)) {
            return super.equals(obj);
        }
        com.lyh.proto.msg.MsgDatagram other = (com.lyh.proto.msg.MsgDatagram) obj;

        boolean result = true;
        result = result && getTopic().equals(other.getTopic());
        result = result && (getSendTime() == other.getSendTime());
        result = result && (hasDatagram() == other.hasDatagram());
        if (hasDatagram()) {
            result = result && getDatagram().equals(other.getDatagram());
        }
        result = result && unknownFields.equals(other.unknownFields);
        return result;
    }

    @java.lang.Override
    public int hashCode() {
        if (memoizedHashCode != 0) {
            return memoizedHashCode;
        }
        int hash = 41;
        hash = (19 * hash) + getDescriptor().hashCode();
        hash = (37 * hash) + TOPIC_FIELD_NUMBER;
        hash = (53 * hash) + getTopic().hashCode();
        hash = (37 * hash) + SEND_TIME_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSendTime());
        if (hasDatagram()) {
            hash = (37 * hash) + DATAGRAM_FIELD_NUMBER;
            hash = (53 * hash) + getDatagram().hashCode();
        }
        hash = (29 * hash) + unknownFields.hashCode();
        memoizedHashCode = hash;
        return hash;
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(java.nio.ByteBuffer data)
                                                                                   throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(java.nio.ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                      throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(com.google.protobuf.ByteString data)
                                                                                              throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(com.google.protobuf.ByteString data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                      throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(byte[] data)
                                                                      throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(byte[] data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                      throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(java.io.InputStream input) throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(java.io.InputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                      throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.lyh.proto.msg.MsgDatagram parseDelimitedFrom(java.io.InputStream input)
                                                                                             throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.lyh.proto.msg.MsgDatagram parseDelimitedFrom(java.io.InputStream input,
                                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                               throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(com.google.protobuf.CodedInputStream input)
                                                                                                     throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.lyh.proto.msg.MsgDatagram parseFrom(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                      throws java.io.IOException {
        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
        return newBuilder();
    }

    public static Builder newBuilder() {
        return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(com.lyh.proto.msg.MsgDatagram prototype) {
        return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
    }

    /**
     * Protobuf type {@code model.MsgDatagram}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
                                                                                                     implements
                                                                                                     // @@protoc_insertion_point(builder_implements:model.MsgDatagram)
                                                                                                     com.lyh.proto.msg.MsgDatagramOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.lyh.proto.msg.MsgOuter.internal_static_model_MsgDatagram_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return com.lyh.proto.msg.MsgOuter.internal_static_model_MsgDatagram_fieldAccessorTable
                .ensureFieldAccessorsInitialized(com.lyh.proto.msg.MsgDatagram.class,
                    com.lyh.proto.msg.MsgDatagram.Builder.class);
        }

        // Construct using com.lyh.proto.msg.MsgDatagram.newBuilder()
        private Builder() {
            maybeForceBuilderInitialization();
        }

        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            super(parent);
            maybeForceBuilderInitialization();
        }

        private void maybeForceBuilderInitialization() {
            if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
            }
        }

        @java.lang.Override
        public Builder clear() {
            super.clear();
            topic_ = "";

            sendTime_ = 0L;

            if (datagramBuilder_ == null) {
                datagram_ = null;
            } else {
                datagram_ = null;
                datagramBuilder_ = null;
            }
            return this;
        }

        @java.lang.Override
        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            return com.lyh.proto.msg.MsgOuter.internal_static_model_MsgDatagram_descriptor;
        }

        @java.lang.Override
        public com.lyh.proto.msg.MsgDatagram getDefaultInstanceForType() {
            return com.lyh.proto.msg.MsgDatagram.getDefaultInstance();
        }

        @java.lang.Override
        public com.lyh.proto.msg.MsgDatagram build() {
            com.lyh.proto.msg.MsgDatagram result = buildPartial();
            if (!result.isInitialized()) {
                throw newUninitializedMessageException(result);
            }
            return result;
        }

        @java.lang.Override
        public com.lyh.proto.msg.MsgDatagram buildPartial() {
            com.lyh.proto.msg.MsgDatagram result = new com.lyh.proto.msg.MsgDatagram(this);
            result.topic_ = topic_;
            result.sendTime_ = sendTime_;
            if (datagramBuilder_ == null) {
                result.datagram_ = datagram_;
            } else {
                result.datagram_ = datagramBuilder_.build();
            }
            onBuilt();
            return result;
        }

        @java.lang.Override
        public Builder clone() {
            return (Builder) super.clone();
        }

        @java.lang.Override
        public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            return (Builder) super.setField(field, value);
        }

        @java.lang.Override
        public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            return (Builder) super.clearField(field);
        }

        @java.lang.Override
        public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            return (Builder) super.clearOneof(oneof);
        }

        @java.lang.Override
        public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
                                        java.lang.Object value) {
            return (Builder) super.setRepeatedField(field, index, value);
        }

        @java.lang.Override
        public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            return (Builder) super.addRepeatedField(field, value);
        }

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other instanceof com.lyh.proto.msg.MsgDatagram) {
                return mergeFrom((com.lyh.proto.msg.MsgDatagram) other);
            } else {
                super.mergeFrom(other);
                return this;
            }
        }

        public Builder mergeFrom(com.lyh.proto.msg.MsgDatagram other) {
            if (other == com.lyh.proto.msg.MsgDatagram.getDefaultInstance())
                return this;
            if (!other.getTopic().isEmpty()) {
                topic_ = other.topic_;
                onChanged();
            }
            if (other.getSendTime() != 0L) {
                setSendTime(other.getSendTime());
            }
            if (other.hasDatagram()) {
                mergeDatagram(other.getDatagram());
            }
            this.mergeUnknownFields(other.unknownFields);
            onChanged();
            return this;
        }

        @java.lang.Override
        public final boolean isInitialized() {
            return true;
        }

        @java.lang.Override
        public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                             throws java.io.IOException {
            com.lyh.proto.msg.MsgDatagram parsedMessage = null;
            try {
                parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                parsedMessage = (com.lyh.proto.msg.MsgDatagram) e.getUnfinishedMessage();
                throw e.unwrapIOException();
            } finally {
                if (parsedMessage != null) {
                    mergeFrom(parsedMessage);
                }
            }
            return this;
        }

        private java.lang.Object topic_ = "";

        /**
         * <code>string topic = 1;</code>
         */
        public java.lang.String getTopic() {
            java.lang.Object ref = topic_;
            if (!(ref instanceof java.lang.String)) {
                com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                java.lang.String s = bs.toStringUtf8();
                topic_ = s;
                return s;
            } else {
                return (java.lang.String) ref;
            }
        }

        /**
         * <code>string topic = 1;</code>
         */
        public com.google.protobuf.ByteString getTopicBytes() {
            java.lang.Object ref = topic_;
            if (ref instanceof String) {
                com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
                topic_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        /**
         * <code>string topic = 1;</code>
         */
        public Builder setTopic(java.lang.String value) {
            if (value == null) {
                throw new NullPointerException();
            }

            topic_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>string topic = 1;</code>
         */
        public Builder clearTopic() {

            topic_ = getDefaultInstance().getTopic();
            onChanged();
            return this;
        }

        /**
         * <code>string topic = 1;</code>
         */
        public Builder setTopicBytes(com.google.protobuf.ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            checkByteStringIsUtf8(value);

            topic_ = value;
            onChanged();
            return this;
        }

        private long sendTime_;

        /**
         * <code>int64 send_time = 2;</code>
         */
        public long getSendTime() {
            return sendTime_;
        }

        /**
         * <code>int64 send_time = 2;</code>
         */
        public Builder setSendTime(long value) {

            sendTime_ = value;
            onChanged();
            return this;
        }

        /**
         * <code>int64 send_time = 2;</code>
         */
        public Builder clearSendTime() {

            sendTime_ = 0L;
            onChanged();
            return this;
        }

        private com.google.protobuf.Any                                                                                                              datagram_ = null;
        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> datagramBuilder_;

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public boolean hasDatagram() {
            return datagramBuilder_ != null || datagram_ != null;
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public com.google.protobuf.Any getDatagram() {
            if (datagramBuilder_ == null) {
                return datagram_ == null ? com.google.protobuf.Any.getDefaultInstance() : datagram_;
            } else {
                return datagramBuilder_.getMessage();
            }
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public Builder setDatagram(com.google.protobuf.Any value) {
            if (datagramBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                datagram_ = value;
                onChanged();
            } else {
                datagramBuilder_.setMessage(value);
            }

            return this;
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public Builder setDatagram(com.google.protobuf.Any.Builder builderForValue) {
            if (datagramBuilder_ == null) {
                datagram_ = builderForValue.build();
                onChanged();
            } else {
                datagramBuilder_.setMessage(builderForValue.build());
            }

            return this;
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public Builder mergeDatagram(com.google.protobuf.Any value) {
            if (datagramBuilder_ == null) {
                if (datagram_ != null) {
                    datagram_ = com.google.protobuf.Any.newBuilder(datagram_).mergeFrom(value).buildPartial();
                } else {
                    datagram_ = value;
                }
                onChanged();
            } else {
                datagramBuilder_.mergeFrom(value);
            }

            return this;
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public Builder clearDatagram() {
            if (datagramBuilder_ == null) {
                datagram_ = null;
                onChanged();
            } else {
                datagram_ = null;
                datagramBuilder_ = null;
            }

            return this;
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public com.google.protobuf.Any.Builder getDatagramBuilder() {

            onChanged();
            return getDatagramFieldBuilder().getBuilder();
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        public com.google.protobuf.AnyOrBuilder getDatagramOrBuilder() {
            if (datagramBuilder_ != null) {
                return datagramBuilder_.getMessageOrBuilder();
            } else {
                return datagram_ == null ? com.google.protobuf.Any.getDefaultInstance() : datagram_;
            }
        }

        /**
         * <code>.google.protobuf.Any datagram = 3;</code>
         */
        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getDatagramFieldBuilder() {
            if (datagramBuilder_ == null) {
                datagramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
                    getDatagram(), getParentForChildren(), isClean());
                datagram_ = null;
            }
            return datagramBuilder_;
        }

        @java.lang.Override
        public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.setUnknownFieldsProto3(unknownFields);
        }

        @java.lang.Override
        public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            return super.mergeUnknownFields(unknownFields);
        }

        // @@protoc_insertion_point(builder_scope:model.MsgDatagram)
    }

    // @@protoc_insertion_point(class_scope:model.MsgDatagram)
    private static final com.lyh.proto.msg.MsgDatagram DEFAULT_INSTANCE;
    static {
        DEFAULT_INSTANCE = new com.lyh.proto.msg.MsgDatagram();
    }

    public static com.lyh.proto.msg.MsgDatagram getDefaultInstance() {
        return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MsgDatagram> PARSER = new com.google.protobuf.AbstractParser<MsgDatagram>() {
                                                                            @java.lang.Override
                                                                            public MsgDatagram parsePartialFrom(com.google.protobuf.CodedInputStream input,
                                                                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                                                            throws com.google.protobuf.InvalidProtocolBufferException {
                                                                                return new MsgDatagram(input,
                                                                                    extensionRegistry);
                                                                            }
                                                                        };

    public static com.google.protobuf.Parser<MsgDatagram> parser() {
        return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<MsgDatagram> getParserForType() {
        return PARSER;
    }

    @java.lang.Override
    public com.lyh.proto.msg.MsgDatagram getDefaultInstanceForType() {
        return DEFAULT_INSTANCE;
    }

}
